package com.ruoyi.common.core.domain;

import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 分类管理对象 tb_color
 * 
 * @author ruoyi
 * @date 2023-09-15
 */
public class Color extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 颜色id */
    private Long id;

    /** 颜色 */
    @Excel(name = "颜色")
    private String colorName;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getColorName() {
        return colorName;
    }

    public void setColorName(String colorName) {
        this.colorName = colorName;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("colorName", getColorName())
                .append("parentId",getParentId())
            .toString();
    }
}
